<include file="../header" />
</head>
<body class="J_scroll_fixed">
<script type="text/javascript">
    $(function() {

        $("button.btn_submit").click(function() {
            if ($("input[name=name]").val() == "") {
                alert("【用户名】不能为空");
                $("input[name=name]").focus();
                return false;
            }

//            if ($("input[name=password]").val() == "") {
//                alert("【密码】不能为空");
//                $("input[name=password]").focus();
//                return false;
//            }

            $("button.btn_submit").hide();

        })

    })

</script>
	<div class="wrap jj">

		<div class="common-form">
			<form method="post" class="form-horizontal J_ajaxForm" action="{:U('User/selfPost')}">
                            <input type="hidden" name="user_id" value="{$user.user_id}" />
				<fieldset>
					<div class="control-group">
						<label class="control-label">企业名称:</label>
						<div style="line-height: 30px; font-size: 1.2rem" class="controls">
							{$user.enterprise_name}
						</div>
					</div>
					<div class="control-group">
						<label class="control-label">姓名:</label>
						<div class="controls">
							<input type="text" class="input" name="adminName" value="{$user.admin_name}" readonly>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label">电话:</label>
						<div class="controls">
							<input type="text" class="input" name="mobile" value="{$user.mobile}">
						</div>
					</div>

					<div class="control-group">
						<label class="control-label">用户名:</label>
						<div class="controls">
							<input autocomplete="off" type="text" class="input" name="name" value="{$user.name}" readonly>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label">密码:</label>
						<div class="controls">
							<input autocomplete="off" type="text" class="input" name="password" placeholder="********">
						</div>
					</div>

					<if condition="$user['signimgurl'] neq ''">
						<div class="control-group">
							<label class="control-label">签名:</label>
							<div class="controls">
								<img src="{$user.signimgurl}" name="preShow"/>
							</div>
						</div>
					</if>
					<hr class="half-rule">

				</fieldset>
				<div class="form-actions">
					<if condition="$first eq '1'">
						<button type="submit" class="btn btn-primary btn_submit">更新</button>
					</if>
					<a class="btn" href="javascript:window.opener=null;window.open('','_self');window.close();">关闭</a>
				</div>
			</form>
		</div>
	</div>
	<script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>